package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xmy.cultivate.entity.views.GradeCustomRuleYearClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 班级自定义设置
 * </p>
 *
 * @author hpiggy
 * @since 2025-03-28
 */
@Data
@TableName("grade_custom_set")
@ApiModel(value = "GradeCustomSet对象", description = "班级自定义设置")
public class GradeCustomSet implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    private Long schoolId;

    @ApiModelProperty("科目")
    private Long subjectsId;

    @ApiModelProperty("2：智能课，3：刷题班")
    private Integer lessonType;

    private String name;

    @ApiModelProperty("添加人")
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    List<GradeCustomGrade> gradeCustomGradeList;

    @TableField(exist = false)
    List<GradeCustomRuleYearClass> customRuleYearClassList;
}
